package com.ruoyi.system.service.impl;

import java.util.Date;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.ATCommerceOrdersMapper;
import com.ruoyi.system.domain.ATCommerceOrders;
import com.ruoyi.system.service.IATCommerceOrdersService;

/**
 * 订单Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-12-11
 */
@Service
public class ATCommerceOrdersServiceImpl implements IATCommerceOrdersService 
{
    @Autowired
    private ATCommerceOrdersMapper aTCommerceOrdersMapper;

    /**
     * 查询订单
     * 
     * @param id 订单主键
     * @return 订单
     */
    @Override
    public ATCommerceOrders selectATCommerceOrdersById(Long id)
    {
        return aTCommerceOrdersMapper.selectATCommerceOrdersById(id);
    }

    /**
     * 查询订单列表
     * 
     * @param aTCommerceOrders 订单
     * @return 订单
     */
    @Override
    public List<ATCommerceOrders> selectATCommerceOrdersList(ATCommerceOrders aTCommerceOrders)
    {
        return aTCommerceOrdersMapper.selectATCommerceOrdersList(aTCommerceOrders);
    }

    /**
     * 新增订单
     * 
     * @param aTCommerceOrders 订单
     * @return 结果
     */
    @Override
    public int insertATCommerceOrders(ATCommerceOrders aTCommerceOrders)
    {
        return aTCommerceOrdersMapper.insertATCommerceOrders(aTCommerceOrders);
    }

    /**
     * 修改订单
     * 
     * @param aTCommerceOrders 订单
     * @return 结果
     */
    @Override
    public int updateATCommerceOrders(ATCommerceOrders aTCommerceOrders)
    {
        return aTCommerceOrdersMapper.updateATCommerceOrders(aTCommerceOrders);
    }

    /**
     * 批量删除订单
     * 
     * @param ids 需要删除的订单主键
     * @return 结果
     */
    @Override
    public int deleteATCommerceOrdersByIds(Long[] ids)
    {
        return aTCommerceOrdersMapper.deleteATCommerceOrdersByIds(ids);
    }

    /**
     * 删除订单信息
     * 
     * @param id 订单主键
     * @return 结果
     */
    @Override
    public int deleteATCommerceOrdersById(Long id)
    {
        return aTCommerceOrdersMapper.deleteATCommerceOrdersById(id);
    }

    @Override
    public List<ATCommerceOrders> rank(ATCommerceOrders atCommerceOrders) {
        return aTCommerceOrdersMapper.rank(atCommerceOrders);
    }
}
